#ifndef CBLOGHEADER_H
#define CBLOGHEADER_H

#include <QDebug>

#include <string>
using std::string;

#include "cshared.h"

/*
title: Activity
date: 2021-02-04 11:02:11
categories: [android]
tags: [activity]
swiper: false
swiperImg: ''
top: false
toc: true
tocOpen: true
comments: false
img: 'https://gitee.com/nisosaikou/pb/raw/master/img/20210204110100.jpg'
*/
class CBlogHeader
{
    string aBlogTitle = "";
    string aBlogData = "";
    string aCategories = "";
    string aBlogTags = "";
    bool isSwiper = false;
    string aSwiperImgURL = "";
    bool isTop = false;
    bool isToc = true;
    bool isTocOpen = true;
    bool isComments = false;
    string aBlogImgURL = "";
    string aMore = "";
public:
    CBlogHeader();
    void setBlogTitle(string& title);
    void setBlogDate(string& dateTime);
    void setBlogCategories(string& categories);
    void setBlogTags(string& tags);
    void setIsSwiper(bool isSwiper);
    void setSwiperImgURL(string& swiperImg);
    void setIsTop(bool isTop);
    void setIsToc(bool isToc);
    void setIsTocOpen(bool isTocOpen);
    void setIsComments(bool isComments);
    void setBlogImgUrl(string& img);
    void setMoreText(string& more);

    string getFormatBlogHeader();
};

#endif // CBLOGHEADER_H
